package com.pengweiwei.androidzygote.functions.base;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.pengweiwei.androidzygote.R;
import com.putong35.common.baseactfrag.activity.BaseActivity;

import butterknife.OnClick;

public class BaseActFragIndexActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }


    @OnClick(R.id.btnMultiType)
    public void onBtnMultiTypeClicked() {
        Intent intent = new Intent(this, MultiTypeActivity.class);
        startActivity(intent);
    }

    @OnClick(R.id.btnHeaderFooter)
    public void onBtnHeaderFooterClicked() {
        Intent intent = new Intent(this, ListViewWithHeaderAndFooterFragActivity.class);
        startActivity(intent);
    }

    @OnClick(R.id.btnBaseState)
    public void onBtnBaseStateClicked() {
        Intent intent = new Intent(this, BaseStateActivity.class);
        startActivity(intent);
    }

    @OnClick(R.id.btnMyActivity)
    public void onBtnMyActivityClicked() {
    }

    @OnClick(R.id.btnMyFragment)
    public void onBtnMyFragmentClicked() {
    }

    @OnClick(R.id.btnDataBindListActivity)
    public void onDataBindListActivityClicked() {
        Intent intent = new Intent(this, DataBindListActivity.class);
        startActivity(intent);
    }

    @OnClick(R.id.btnMyListActivity)
    public void onMyListActivityClicked() {
        Intent intent = new Intent(this, MyListActivity.class);
        startActivity(intent);
    }

    @OnClick(R.id.btnMyListFragment)
    public void onBtnMyListFragmentClicked() {
        Intent intent = new Intent(this, MyListFragmentActivity.class);
        startActivity(intent);
    }

    @OnClick(R.id.btnDataBindListFragment)
    public void onBtnDataBindListFragmentClicked() {
        Intent intent = new Intent(this, DataBindListFragmentActivity.class);
        startActivity(intent);
    }


    @Override
    public View createDataView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        return inflater.inflate(R.layout.activity_base_act_frag_index, null);
    }
}
